package com.java.service.Impl;

import com.java.Exception.MyException;
import com.java.dao.AddLine;
import com.java.dao.Impl.AddLineImpl;
import com.java.entity.AirLine;
import com.java.service.addLineService;

import java.sql.SQLException;

public class addLineServiceImpl implements addLineService {
    AddLine addline=new AddLineImpl();
    @Override
    public boolean addLine(AirLine airLine) throws SQLException,MyException {
        int i=addline.addLineNo(airLine);
        if (i>0){
            return  true;
        }
        return false;
    }
}
